package xiaomeng.com.xsngame;

import android.graphics.Canvas;
import android.graphics.Paint;

/**
 * 地面类
 */
public class Ground {
    //地面坐标
    int groundX;
    int groundY;

    public Ground(){
        groundX=0;
        groundY=MyApplication.height- DataImage.caodi.getHeight();
    }

    public void paint(Canvas canvas, Paint paint){
        canvas.drawBitmap(DataImage.caodi,groundX,groundY,paint);
    }



          public void move(){
                   groundX-=2;
                   if (groundX==MyApplication.width- DataImage.caodi.getWidth()+50){
                       groundX=0;

                   }
         }



}
